package ru.spb.nicetu.schoolproject.gui;

import ru.spb.nicetu.schoolproject.data.HibernateTblModel;

import javax.swing.*;
import java.awt.*;

/**
 * Created by dchernyshov on 23.04.15.
 */
public class ReportsDialog<T extends HibernateTblModel> extends CommonDialog<T> {
    public ReportsDialog(T tblModel, boolean toolbar) {
        this.tblModel = tblModel;
        setFrameSize();
        setModalityType(ModalityType.APPLICATION_MODAL);
        setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        Box vbox = createVerticalBox();
        if (toolbar) {
            lastBox.remove(btnPrevious);
            lastBox.remove(btnNext);
        }
        add(vbox, BorderLayout.CENTER);
    }
}
